#include "DiRenjie.h"
#include "Hero.h"
#include <iostream>

DiRenjie::DiRenjie() { cout << "DiRenjie()" << endl; }

DiRenjie::DiRenjie(string name, int HP, int MP, int explosivePower)
    : Hero(name, HP, MP), explosivePower(explosivePower) {
  cout << "DiRenjie(string name, int HP, int MP, int explosivePower)" << endl;
}

DiRenjie::~DiRenjie() { cout << "~DiRenjie()" << endl; }

int DiRenjie::getExplosivePower() { return this->explosivePower; }

void DiRenjie::setExplosivePower(int explosivePower) {
  this->explosivePower = explosivePower;
}

void DiRenjie::show() {
  cout << "| name : " << this->getName() << " | HP : " << this->getHP()
       << " | MP : " << this->getMP()
       << " | explosivePower : " << this->getExplosivePower() << " |" << endl;
}
